import org.jrtaudio.*;

/**
 * AudioProbe outputs information about the audio devices available on the system.
 * @author ben
 *
 */
public class AudioProbe
{
	static public void main(String args[]) throws InterruptedException
	{
		// instantiate a new instance
		JRtAudio au = new JRtAudio();
		au.showWarnings();
		
		// find the default output device
		int numDevices = au.getDeviceCount();
		for(int i=0;i<numDevices;i++)
		{
			DeviceInfo di = au.getDeviceInfo(i);			
			System.out.println("Device " + i);
			System.out.println(di.str());
		}
	}
}